package com.restaurant.springboot.controller;

import com.restaurant.springboot.annotation.TokenAuth;
import com.restaurant.springboot.utils.RespCode;
import com.restaurant.springboot.utils.RespEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author jack
 * @Date:2019/7/29 14:21
 */
@RestController
    @RequestMapping("/api/store/")
public class StoreInfoController {

    @TokenAuth
    @RequestMapping("info")
    public RespEntity getStoreInfo() {
        return new RespEntity(
                RespCode.SUCCESS,
                "OK"
        );
    }
}
